import request from "@/utils/request";

// 查询数据项配置列表
export function listItem(query) {
	return request({
		url: "/operation/web/shift_data_item/list",
		method: "get",
		params: query,
	});
}

// 查询数据项配置详细
export function getItem(itemId) {
	return request({
		url: "/operation/web/shift_data_item/" + itemId,
		method: "get",
	});
}

// 新增数据项配置
export function addItem(data) {
	return request({
		url: "/operation/web/shift_data_item",
		method: "post",
		data: data,
	});
}

// 修改数据项配置
export function updateItem(data) {
	return request({
		url: "/operation/web/shift_data_item",
		method: "put",
		data: data,
	});
}

// 删除数据项配置
export function delItem(itemId) {
	return request({
		url: "/operation/web/shift_data_item/" + itemId,
		method: "delete",
	});
}
